//
//  NSData+Base64.h
//  lc-collect
//
//  Created by mac on 2021/3/3.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSData (Base64)

/// 字符串base64后转data
/// @param string string 传入字符串
+ (NSData *)dataWithBase64EncodedString:(NSString *)string;

/// NSData转string
/// @param wrapWidth wrapWidth 换行长度  76  64
- (NSString *)base64EncodedStringWithWrapWidth:(NSUInteger)wrapWidth;

/// NSData转string 换行长度默认64
- (NSString *)base64EncodedString;

@end

NS_ASSUME_NONNULL_END
